﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="left_product_menu.ascx.cs"
    Inherits="Control_menu_left_left_product_menu" %>
<div id="side_bar_1">
    <div class="menu_product">
        <p>
            DANH MỤC SẢN PHẨM</p>
    </div>
    <asp:DataList ID="DataList2" runat="server" Width="168px">
        <ItemTemplate>
            <dt><a href="#">
                <asp:Image ID="Image1" ImageUrl="~/Images/Image_Pages/list_type_sp.jpg" runat="server" />
                <asp:Label runat='server' ID="lbc" Text='<%# Eval("TenNhomHang") %>'></asp:Label>
                <asp:Label runat='server' ID="lb" Text='<%# Eval("MaNhomHang") %>' Visible='false'></asp:Label>
            </a>
                <dd>
                    <asp:DataList ID="DataList3" runat="server" DataSourceID="SqlDataSource3" Width="168px">
                        <ItemTemplate>
                            <ul>
                                <li><a id='lik' href="Chitiet.aspx?mahh=<%#Eval("MaHang") %>">
                                    <%#Eval("TenHang") %></a> </li>
                            </ul>
                        </ItemTemplate>
                    </asp:DataList>
                  <asp:SqlDataSource ID="SqlDataSource3" runat="server" ConnectionString="<%$ ConnectionStrings:strConnection %>"
        SelectCommand="SELECT [MaHang], [MaNhomHang], [TenHang] FROM [tb_HangHoa] WHERE ([MaNhomHang] = @MaNhomHang)">
        <SelectParameters>
            <asp:ControlParameter ControlID="lb" Name="MaNhomHang" PropertyName="Text" Type="String" />
        </SelectParameters>
    </asp:SqlDataSource>
                </dd>
            </dt>
        </ItemTemplate>
    </asp:DataList>
</div>

